package com.micaelvesterlund.skeerkie.shared.util;

import java.util.Random;

import com.micaelvesterlund.skeerkie.shared.domain.Name;

public class NameGenerator {

	private Random random;

	public NameGenerator() {
		random = new Random(System.currentTimeMillis());
	}

	public Name createFirstName() {
		return new Name(
				FirstNames.names[random.nextInt(FirstNames.names.length)]);
	}

	public Name createLastName() {
		return new Name(LastNames.names[random.nextInt(LastNames.names.length)]);
	}

	public Name createCityName() {
		return new Name(CityNames.names[random.nextInt(CityNames.names.length)]);
	}
}
